﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ikvm.extensions;

namespace Game.model.actor.instances.player
{
    public class BookMark
    {
        public int x, y, z;
	    private int icon;
	    private string name, acronym;
        public BookMark(Location loc, int aicon, String aname, String aacronym):this(loc.x, loc.y, loc.z, aicon, aname, aacronym)
        {
            //;
        }
        public BookMark(int _x, int _y, int _z, int aicon, String aname, String aacronym)
        {
            x = _x;
            y = _y;
            z = _z;
            setIcon(aicon);
            setName(aname);
            setAcronym(aacronym);
        }
        public BookMark setIcon(int val)
        {
            icon = val;
            return this;
        }
        public int getIcon()
        {
            return icon;
        }
        public BookMark setName(String val)
        {
            name = val.length() > 32 ? val.substring(0, 32) : val;
            return this;
        }
        public String getName()
        {
            return name;
        }
        public BookMark setAcronym(String val)
        {
            acronym = val.length() > 4 ? val.substring(0, 4) : val;
            return this;
        }
        public String getAcronym()
        {
            return acronym;
        }
    }
}
